<html>
  <head>
    <script>
      window.onload = function(){
        alert('test')
      }
    </script>
  </head>
  <body>
    TEST
  </body>
</html>